package powerup;

import java.awt.Point;

import javax.swing.ImageIcon;

import GAME.game;
import player.*;

public class heal extends powerup{
	
	public heal(game g,Point p){
		this.setText("heal");
		this.setBounds(185, 23, 29, 25);
		this.setIcon(new ImageIcon(getClass().getClassLoader().getResource("resources/heal.png")));
		this.setLocation(p);
		juego=g;
		
	}

	
	public void activarpowerup() {
		juego.getplayer().hit(-25);
		
	}

}